<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<title>Insert title here</title>
<script type="text/javascript">
function jacsonData(){
	  $.ajax({
          url: 'test.spring?action=test',
          method:'get',
          dataType: 'json',
          success:function(data) {
        		   $.each(data, function() {
                        console.dir(this.foodIngestPurpose );
        		   });
          },
          error:function(data){
        		   $('#b').text("실패" + data);
          }
          
      });
}
</script>
</head>
<body>
    <a id="a" href="javascript:jacsonData();">RRRR</a>
    <div id="b"style="width: 100%; height: 100%; "></div>
</body>
</html>